package com.worthtech.billportal.bean;

/**
 * WtFavorableBhId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class WtFavorableBhId implements java.io.Serializable {

	// Fields

	private String wtFavorMercode;
	private String wtFavorUptime;

	// Constructors

	/** default constructor */
	public WtFavorableBhId() {
	}

	/** full constructor */
	public WtFavorableBhId(String wtFavorMercode, String wtFavorUptime) {
		this.wtFavorMercode = wtFavorMercode;
		this.wtFavorUptime = wtFavorUptime;
	}

	// Property accessors

	public String getWtFavorMercode() {
		return this.wtFavorMercode;
	}

	public void setWtFavorMercode(String wtFavorMercode) {
		this.wtFavorMercode = wtFavorMercode;
	}

	public String getWtFavorUptime() {
		return this.wtFavorUptime;
	}

	public void setWtFavorUptime(String wtFavorUptime) {
		this.wtFavorUptime = wtFavorUptime;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof WtFavorableBhId))
			return false;
		WtFavorableBhId castOther = (WtFavorableBhId) other;

		return ((this.getWtFavorMercode() == castOther.getWtFavorMercode()) || (this
				.getWtFavorMercode() != null
				&& castOther.getWtFavorMercode() != null && this
				.getWtFavorMercode().equals(castOther.getWtFavorMercode())))
				&& ((this.getWtFavorUptime() == castOther.getWtFavorUptime()) || (this
						.getWtFavorUptime() != null
						&& castOther.getWtFavorUptime() != null && this
						.getWtFavorUptime()
						.equals(castOther.getWtFavorUptime())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getWtFavorMercode() == null ? 0 : this.getWtFavorMercode()
						.hashCode());
		result = 37
				* result
				+ (getWtFavorUptime() == null ? 0 : this.getWtFavorUptime()
						.hashCode());
		return result;
	}

}